﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminSite.master" AutoEventWireup="true"
    CodeFile="Dashboard.aspx.cs" Inherits="Admin_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .layer1
        {
            margin: 0;
            padding: 0;
            width: 500px;
        }
        
        .heading
        {
            color: #fff;
            padding: 3px 10px;
            cursor: pointer;
            position: relative;
            background-color: #5e5e5e;
            height: 30px;
            line-height: 30px;
            font-size: 17px;
            top: 0px;
            left: 0px;
        }
        .content
        {
            padding: 5px 10px;
            background-color: #fafafa;
        }
        input[type="text"]
        {
            height: 26px;
            border: 1px solid #598ede;
            padding-left: 5px;
        }
        input[type="text"]:hover
        {
            height: 26px;
            border: 1px solid #598ede;
        }
    </style>
    <script type="text/javascript">
        jQuery(document).ready(function () {
            ExbandableControls();
        });
        function ExbandableControls() {
            jQuery(document).ready(function () {
                jQuery(".contentLog").show();
                jQuery(".content").hide();
                //toggle the componenet with class msg_body
                jQuery(".heading").click(function () {
                    jQuery(this).next(".content").slideToggle(500);
                });
                jQuery(".heading").click(function () {
                    jQuery(this).next(".contentLog").slideToggle(500);
                });
            });
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:HiddenField ID="hfResetPoral" runat="server" Value="false" />
    <script type="text/javascript" language="javascript">
        var tID;
        Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler);
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        function BeginRequestHandler(sender, args) {
            clearTimeout(tID);
        }

        function EndRequestHandler(sender, args) {
            ExbandableControls();
            if ($("#ctl00_ContentPlaceHolder1_hfResetPoral").val() == "true") {
                var r = confirm("To apply new changes we should make reset admin portal!")
                if (r == true) {
                    window.location = "../admin/login";
                }
            }
        }                                  
    </script>
    <div id="content-table-inner">
        <div style="height: 250px; text-align: center; font-size: 25px;" id="div_EmptyDiv"
            runat="server">
            <strong>الرجاء من الاخوة الكرم عند ادخال خبر او مقال او اي شي ارسال بريد الكتروني لكي
                اقوم بتعديلة او اضافته الي ارشفه جوجل </strong>
            <div style="clear: both; height: 10px;">
            </div>
            <a href="mailto:khodrog@gmail.com">khodrog@gmail.com </a>
        </div>
        <table border="0" width="100%" cellpadding="0" cellspacing="0">
            <tbody id="tbDashbaord" runat="server">
                <tr>
                    <td colspan="2" align="right">
                        <asp:Button ID="btnSaveSettings" runat="server" Width="120" Text="Save" OnClick="btnSaveSettings_Click" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="height: 20px;" align="right">
                        &nbsp;
                    </td>
                </tr>
                <tr valign="top">
                    <td>
                        <!-- start id-form -->
                        <table border="0" cellpadding="0" cellspacing="0" id="id-form">
                            <tbody>
                                <tr>
                                    <td style="padding: 0px;">
                                        <div class="layer1">
                                            <p class="heading">
                                                Site
                                            </p>
                                            <div class="content" style="height: 290px; background-color: #e6e6e6; border: 1px solid #ccc;">
                                                <table width="100%" cellpadding="0" cellspacing="0">
                                                    <tr>
                                                        <td colspan="2" style="height: 10px;">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            Site Name :
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtSiteName" Width="270" runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            Site Meta Description :
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtSiteMetaDescription" Width="270" Height="90" TextMode="MultiLine"
                                                                runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            Site Meta Keywords :
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtSiteMetaKeywords" Width="270" Height="90" TextMode="MultiLine"
                                                                runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            Site Offline:
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlSiteStstus" runat="server">
                                                                <asp:ListItem Text="Online" Value="1"></asp:ListItem>
                                                                <asp:ListItem Text="Offline" Value="2"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 10px;">
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="layer1" style="padding-top: 10px;">
                                            <p class="heading">
                                                System
                                            </p>
                                            <div class="content" style="height: 300px; background-color: #e6e6e6; border: 1px solid #ccc;">
                                                <table width="100%" cellpadding="0" cellspacing="0">
                                                    <tr>
                                                        <td colspan="2" style="height: 10px;">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            Log Status:
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlLogStatus" runat="server">
                                                                <asp:ListItem Text="Enable" Value="1"></asp:ListItem>
                                                                <asp:ListItem Text="Disabled" Value="2"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            Log path :
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtLogPath" Width="270" runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            Cache Status :
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlCasheStatus" runat="server">
                                                                <asp:ListItem Text="Enable" Value="1"></asp:ListItem>
                                                                <asp:ListItem Text="Disabled" Value="2"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            Session Lifetime :
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtSessionLifetime" Width="270" runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                     <tr>
                                                        <td style="width: 140px;">
                                                           Live Stream :
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlLiveStream" runat="server">
                                                                <asp:ListItem Text="Enable" Value="1"></asp:ListItem>
                                                                <asp:ListItem Text="Disabled" Value="0"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    
                                                </table>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="height: 100px;">
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- end id-form  -->
                    </td>
                    <td>
                        <table border="0" cellpadding="0" cellspacing="0" id="Table1">
                            <tbody>
                                <tr>
                                    <td>
                                        <div class="layer1">
                                            <p class="heading">
                                                System
                                            </p>
                                            <div class="contentLog" style="height: 600px; background-color: #e6e6e6; padding-left: 10px;
                                                border: 1px solid #ccc;">
                                                <table width="100%" cellpadding="0" cellspacing="0">
                                                    <tr>
                                                        <td colspan="2" style="height: 10px;">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="border-bottom: 2px solid #ccc; height: 30px; font-weight: bold;">
                                                            Database Settings
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 10px;">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            Database Type :
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlDBType" runat="server">
                                                                <asp:ListItem Text="MSSQL Server" Value="1"></asp:ListItem>
                                                                <asp:ListItem Text="MySQL" Value="2"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 10px;">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            Host :
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtDBHost" Width="270" runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 10px;">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            Database Username :
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtDatabaseUsername" Width="270" runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 10px;">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            Database Password:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtDatabasePassword" Width="270" runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 10px;">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            Database Name:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtDatabaseName" Width="270" runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 30px;">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="border-bottom: 2px solid #ccc; height: 30px; font-weight: bold;">
                                                            Email Settings
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 10px;">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            From Email :
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtFromEmail" Width="270" runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 10px;">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            From Name :
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtFromName" Width="270" runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 10px;">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            SMTP Authentication :
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlSMTPAuthentication" runat="server">
                                                                <asp:ListItem Text="Enable" Value="1"></asp:ListItem>
                                                                <asp:ListItem Text="Disabled" Value="2"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 10px;">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            SMTP Security :
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlSMTPSecurity" runat="server">
                                                                <asp:ListItem Text="None" Value="1"></asp:ListItem>
                                                                <asp:ListItem Text="SSL" Value="2"></asp:ListItem>
                                                                <asp:ListItem Text="TLS" Value="3"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 10px;">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            SMTP Port :
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtSMTPPort" Width="270" runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 10px;">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            SMTP Username :
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtSMTPUsername" Width="270" runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 10px;">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            SMTP Password :
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtSMTPPassword" Width="270" runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 10px;">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 140px;">
                                                            SMTP Host :
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtSMTPHost" Width="270" runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" style="height: 10px;">
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <%-- <tr>
                                    <td>
                                        <div class="layer1" style="padding-top: 10px;">
                                            <p class="heading">
                                                Log Exceptions
                                            </p>
                                            <div class="contentLog" style="height: 100px; background-color: #e6e6e6;">
                                               <table width="100%" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>Error Code:</td>
                                                </tr>
                                               </table>
                                            </div>
                                        </div>
                                    </td>
                                </tr>--%>
                                <tr>
                                    <td style="height: 100px;">
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <img src="../img/shared/blank.gif" width="695" height="1" alt="blank">
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="clear">
        </div>
    </div>
</asp:Content>
